/*cnpm install express --save*/
/*cnpm install cors --save*/

var Express = require('express')
var cors=require('cors')
var app = new Express();
var userRouter = require('./router/user')
var employeeRouter = require('./router/basic/employee')
var dictRouter = require('./router/dict')
var logisticsRouter=require('./router/basic/Logistics')

app.use(cors());

app.use('/logistics',logisticsRouter);

app.use('/user',userRouter);
app.use('/emp',employeeRouter)
app.use('/dict',dictRouter)
var server=app.listen('3000','localhost',function (req,res) {

  var host= server.address().address;
  var post=server.address().port;

  console.log('the server in running on http://%s:%s',host,post);

})
